<template>
  <el-form :inline="true" :model="form" class="demo-form-inline" ref="form">
  <el-form-item>
    <el-input v-model="form.username" placeholder="根据用户名搜索"></el-input>
  </el-form-item>
  <el-form-item style="margin-left:5px">
    <el-button size="small" @click="onSubmit">清空</el-button>
    <el-button type="primary" size="small" @click="onSubmit">查询</el-button>
  </el-form-item>
</el-form>
</template>

<script>
export default {
  props: { form: Object },
  data () {
    return {

    }
  },
  methods: {
    async  onSubmit () {
      this.$emit('Search', this.form)
    }
  }
}
</script>
<style scoped>
::v-deep .el-input__inner{
    height: 31px !important;
    position: relative;
    top: 1px;
}
</style>
